<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-redWelfareBagUser-add">
	        <div class="form-group">
            <label class="col-sm-3 control-label">福利包ID：</label>
            <div class="col-sm-8">
                <input id="bagId" name="bagId" class="form-control" type="text">
            </div>
        </div>
		        <div class="form-group">
            <label class="col-sm-3 control-label">用户ID：</label>
            <div class="col-sm-8">
                <input id="userId" name="userId" class="form-control" type="text">
            </div>
        </div>
		        <div class="form-group">
            <label class="col-sm-3 control-label">抢到金额：</label>
            <div class="col-sm-8">
                <input id="bagMoney" name="bagMoney" class="form-control" type="text">
            </div>
        </div>
		        <div class="form-group">
            <label class="col-sm-3 control-label">状态 0.已分配 1.已入账：</label>
            <div class="col-sm-8">
                <input id="status" name="status" class="form-control" type="text">
            </div>
        </div>
		        <div class="form-group">
            <label class="col-sm-3 control-label">抢包时间：</label>
            <div class="col-sm-8">
                <input id="bagTime" name="bagTime" class="form-control" type="text">
            </div>
        </div>
							


		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "module/redWelfareBagUser"
		$("#form-redWelfareBagUser-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-redWelfareBagUser-add').serialize());
	        }
	    }
	</script>
</body>
</html>
